package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("质押藏品")
public class DaoPledgeDigitDTO {

    @ApiModelProperty("数量")
    @NotNull(message = "质押藏品数量不能为空")
    @Min(value = 1, message = "质押藏品数量不能小于1")
    private Integer size;

    @ApiModelProperty("藏品id")
    @NotNull(message = "质押藏品id不能为空")
    private Long collectionId;
}
